package com.chengjj.kings;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @Author: 成俊杰
 * @CreateDate: 2019/3/1
 * @Version: 1.0
 * @Description:
 * 项目启动类 方式一 内部嵌套启动
 * <packaging>jar</packaging> 时使用该种方法启动
 * 区别 ：执行SpringBootApplication的run方法,启动IOC容器,然后创建嵌入式Servlet容器
 */
@SpringBootApplication
public class Kings_Application {
    private final static Logger logger = LoggerFactory.getLogger(Kings_Application.class);

    public static void main(String[] args) {
        SpringApplication.run(Kings_Application.class,args);
        logger.info(Kings_Application.class.getSimpleName() + "is success!");
    }

}
